/* WHATWG Green: sRGB #3c790a, rgb(60, 121, 10) */

html { margin: 0; padding: 0; background: white; color: black; }
body { margin: 0 auto; padding: 0 2.5em 2em 2.5em; max-width: 80em; background: white; color: black; }
@media (max-width: 100em) {
  body { padding-right: 10em; }
}

@keyframes fade-target {
  0%, 50% { background:yellow }
}

@media screen {
  dfn:target, a:target, i:target { animation: 3s ease 0s 1 fade-target; }
  :link, :visited { text-decoration-color: rgba(0, 0, 0, 0.3); }
  .toc :link, .toc :visited, code :link, code :visited { text-decoration: none; }
  :link:hover, :visited:hover, :link:focus, :visited:focus { text-decoration: underline; }
  :link { color: #00C; }
  :visited { color: #609; }
  :link:active, :visited:active { color: #C00; }
  pre :link, pre :visited { background: transparent; text-decoration: none; }
  pre:hover :link, pre:hover :visited { text-decoration: underline; }
}

.selected-text-file-an-issue {
  position: fixed;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  font-size: smaller;
  padding: 4px 10px;
  z-index: 4;
}

.status-LS-COMMIT .selected-text-file-an-issue, .status-LS-BRANCH .selected-text-file-an-issue {
  bottom: 40px; /* Dodge the collapsed .annoying-warning */
}

.tracking-vector { position: absolute; right: 4px; z-index: 5; }
@media (max-width: 767px) {
  .tracking-vector { position: static; float: right; }
}

@media (max-width: 767px) {
  html { background: #fff; tab-size: 2; }
  body { max-width: none; padding: 0 0.625em; }
  pre, code, a { word-wrap: break-word; }
  .selected-text-file-an-issue { left: 0; right: auto; text-align: left; }
}

code { color: #666666; font-style: normal; }
dfn code { color: orangered; }
code :link, :link code, code :visited, :visited code { color: orangered; }
pre :link, pre :visited { color: inherit; }

html, ::before { font: 1em/1.45 Helvetica Neue, sans-serif, Droid Sans Fallback; }
h1, h2, h3, h4, h5, h6 { text-align: left; text-rendering: optimizeLegibility; }
h1, h2, h3 { color: #3c790a; background: transparent; }
h1 { font: 900 200% Helvetica Neue, sans-serif, Droid Sans Fallback; }
h1.allcaps { font: 900 350% Helvetica Neue, sans-serif, Droid Sans Fallback; letter-spacing: 2px; }
h2 { font: 800 140% Helvetica Neue, sans-serif, Droid Sans Fallback; }
h3 { font: 800 125% Helvetica Neue, sans-serif, Droid Sans Fallback; }
h4 { font: 800 110% Helvetica Neue, sans-serif, Droid Sans Fallback; }
h5 { font: 800 100% Helvetica Neue, sans-serif, Droid Sans Fallback; }
h6 { font: 600 italic 100% Helvetica Neue, sans-serif, Droid Sans Fallback; }

h2 { margin: 6em 0 1em 0; }
h3, h4, h5, h6 { margin: 4.5em 0 1em 0; }
h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6, h1 + div.status + h2, h2 + div.status + h3, h3 + div.status + h4, h4 + div.status + h5, h5 + div.status + h6 { margin-top: 0.5em; }
header + h2, header + hr + h2, header + hr + #configUI + h2, header + hr + #configUI + #updatesStatus + h2, h2.no-toc { margin-top: 2em; }
hr { display: block; background: none; border: none; padding: 0; margin: 3em 0; height: auto; }
p { margin: 1.25em 0; }
dl, dd { margin-top: 0; margin-bottom: 0; }
dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
dt ul { margin: 0 1.25em; }
dt + dt { margin-top: 0; }
dd dt { margin-top: 0.25em; margin-bottom: 0; }
dd p, dd ol, dd ol.brief { margin-top: 0; }
dd dl + p, dd dl + div.status + p { margin-top: 1.25em; }
dd table + p, dd table + div.status + p { margin-top: 1.25em; }
p + * > li, p + div.status + * > li, dd li, p + * > li > p, p + div.status + * > li > p, dd li > p { margin: 1em 0; }

h2, h3, h4, h5, h6 { position: relative; }
@media (max-width: 767px) {
  dd { margin-left: 0; }
}

/* Self-links */

li > a.self-link {
  left: -3.5em;
}
dfn > a.self-link {
  top: auto;
  left: auto;
  opacity: 0;
  width: 1.5em;
  height: 1.5em;
  background: gray;
  color: white;
  font-style: normal;
  transition: opacity .2s, background-color .2s, color .2s;
}
dfn:hover > a.self-link {
  opacity: 1;
}
dfn > a.self-link:hover {
  color: black;
  background-color: #B1C99D;
}
dfn > a.self-link::before {
  content: "#";
}

/* Hide dfn self-links when there's no hover, since they only otherwise show up when you click, and
   in that case they're covered by the dfn.js popup anyway. */
/* TODO: remove `, (hover: on-demand)` when
   https://bugs.chromium.org/p/chromium/issues/detail?id=654861 and
   https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9308676/ get fixed */
@media (hover: none), (hover: on-demand) {
  dfn > a.self-link {
    display: none;
  }
}

/* Also make sure that they aren't any wider than the right margin, as this otherwise causes
   horizontal scrollbars. (The right margin for small viewports is defined in standard.css.) */
@media (max-width: 767px) {
  dfn > a.self-link {
    width: 0.625em;
  }
}

body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
body > .toc > li { margin-top: 1.75em; margin-bottom: 2.25em; }
body > .toc > li > * > li { margin-top: 0.4em; margin-bottom: 0.6em; }
body > .toc > li > * > li > * > li { margin-top: 0.2em; margin-bottom: 0.4em; }
body > .toc > li > * > li > * > li > * > li { margin-top: 0.1em; margin-bottom: 0.2em; }
.toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
@media (max-width: 767px) {
  .toc { padding-left: 0.5em; }
  .toc ol, dd { padding-left: 1.5em; }
}

dt, dfn { font-weight: bolder; font-style: normal; }
i, em, dt dfn { font-style: italic; }
pre, code { font-size: inherit; font-family: monospace, Droid Sans Fallback, Helvetica Neue, sans-serif; font-variant: normal; }
pre strong { font: inherit; background: #DDFFDD; color: green; }
pre small { color: silver; font: inherit; }
pre em { font-weight: bolder; font-style: normal; }
var sub { vertical-align: bottom; font-size: smaller; top: 0.1em; }
var > var::before { content: "⟨"; font-style: normal; }
var > var::after { content: "⟩"; font-style: normal; }
table { border-collapse: collapse; border-style: hidden hidden none hidden; }
table thead, table tbody { border-bottom: solid; }
table tbody th { text-align: left; }
table tbody th:first-child { border-left: solid; }
table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }

img, object, p.overview { position: relative; z-index: 2; }
img.extra, p.overview { float: right; }
p > img:only-child { margin-left: 2em; }
@media (max-width: 767px) {
  img { max-width: 100%; object-fit: contain; }
  img.extra, p.overview { float: none; }
  p > img:only-child { margin-left: 0; }
}

dl.switch { padding-left: 2em; }
dl.switch > dt { text-indent: -1.5em; }
dl.switch > dt > * { text-indent: 0; }
dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
dl.triple { padding: 0 0 0 1em; }
dl.triple dt, dl.triple dd { margin: 0; display: inline }
dl.triple dt:after { content: ':'; }
dl.triple dd:after { content: '\A'; white-space: pre; }
tr.rare { background: #EEEEEE; color: #333333; }

/*
 * .domintro, .note, .warning, .example, .XXX, .critical
 */

.domintro, .note, .warning, .example, .XXX, .critical {
  margin: 1.5em 0;
  padding: 0.5em 1em;
}
li > .domintro, li > .note, li > .warning, li > .example, li > .XXX, li > .critical {
  margin: 1em 0;
}
.domintro > :first-child, .note > :first-child, .warning > :first-child, .example > :first-child, .XXX > :first-child, .critical > :first-child,
.domintro > .self-link:first-child + *, .note > .self-link:first-child + *, .warning > .self-link:first-child + *, .example > .self-link:first-child + *, .XXX > .self-link:first-child + *, .critical > .self-link:first-child + * {
  margin-top: 0;
}
.domintro > :last-child, .note > :last-child, .warning > :last-child, .example > :last-child, .XXX > :last-child, .critical > :last-child {
  margin-bottom: 0;
}

/* These ones have decorations */
.domintro, .note, .warning, .example {
  position: relative;

  /* top gets extra 0.5em (both above and below) for the decoration;
     then we add the padding to the bottom as well for symmetry */
  margin-top: 2em;
  padding-top: 1em;
  padding-bottom: 1em;
}
li > .domintro, li > .note, li > .warning, li > .example {
  margin-top: 1.5em;
}
.domintro::before, .note::before, .warning::before, .example::before {
  padding: 0.15em 0.25em;
  position: absolute;
  top: -0.8em;
  left: -0.8em;
  color: white;
}
@media (max-width: 767px) {
  .domintro, .note, .warning, .example {
    margin-top: 2em;
    padding-top: 1.5em;
    padding-bottom: 0.5em;
  }
  .domintro::before, .note::before, .warning::before, .example::before {
    top: -0.3em;
    left: -0.3em;
  }
}

/* These ones can be inline <span>s */
span.note, span.warning, span.XXX {
  padding-top: 0;
  padding-bottom: 0;
}
span.note {
  padding-left: 3.5em;
}
span.warning {
  padding-left: 6em;
}
span.note::before, span.warning::before {
  left: 0;
  top: -0.25em;
}

.domintro {
  color: green;
  background: #DDFFDD;
}
.domintro::before {
  background: green;
}
.domintro dt, .domintro dt * {
  color: black;
}
dl.domintro dd p {
  margin: 0.5em 0;
}
dl.domintro dd p:first-child {
  margin-top: 0;
}
dl.domintro dd p:last-child {
  margin-bottom: 0;
}

.note {
  color: green;
  background: #DDFFDD;
  font-style: italic;
}
.note::before {
  background: green;
}
.note em, .note i, .note var, .note cite {
  font-style: normal;
}

.warning {
  color: red;
  background: #FFFFCA;
  font-weight: bolder;
  font-style: italic;
}
.warning::before {
  color: yellow;
  background: red;
}
.warning em, .warning i, .warning var, .warning cite {
  font-style: normal;
}

.example {
  color: #222222;
  background: #EEEEEE;
}
.example::before {
  background: #222222;
}
td > .example:only-child {
  margin: 0 0 0 0.1em;
  padding: 0;
}
td > .example:only-child::before {
  display: none;
}

.XXX {
  color: #E50000;
  background: white;
  border: solid red;
}

.critical {
  background: #FFFFCC;
  border: double thick red;
}

figure.diagrams { border: thin solid black; background: white; padding: 1em; }
figure.diagrams img { display: block; margin: 1em auto; }

h2:not(.short) { page-break-before: always; }
h2#contents { page-break-before: avoid; }
h1, h2, h3, h4, h5, h6, dt { page-break-after: avoid; }
hgroup h2, h1 + h2, hr + h2.no-toc { page-break-before: auto ! important; }

.brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
.brief > li { margin: 0; padding: 0; }
.brief > li > p, .brief > li > ol, .brief > li > ul, .brief > li > dl {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
.category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
.category-list li { display: inline; }
.category-list li:not(:last-child)::after { content: ', '; }

.tablenote { margin: 0.25em 0; }
.tablenote small { font-size: 0.9em; }

.bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
.bookkeeping { font-size: 0.8em; margin: 2em 0; }
.bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
.bookkeeping dt { margin: 0.5em 2em 0; }
.bookkeeping dd { margin: 0 3em 0.5em; }

h4 { position: relative; z-index: 3; }
h4 + .element, h4 + div.status + .element { margin-top: -2.75em; padding-top: 1.5em; }
.element { background: #EEFFEE; color: black; margin: 0 0 1em -0.15em; padding: 0 1em 0.25em 1em; }
.element:not(:hover) > dt > :link, .element:not(:hover) > dt > :visited { color: inherit; text-decoration: none; }

table.css-property caption { text-align: left; font: inherit; font-weight: bolder; }
table.css-property th { font: inherit; font-style: italic; text-align: left; padding-left: 2em; }

td.non-rectangular-cell-continuation { border-left-style: hidden; }
td.non-rectangular-cell-indentation { border-top-style: hidden; min-width: 2em; }

.hide { display: none }

.head { margin: 0 0 1em; padding: 1em 0 0 0; display: block; }
.head p { margin: 0; }
.head h1 { margin: 0 100px 0 0; }
.head h2 { margin-top: 0; margin-right: 100px; }
@media (max-width: 767px) {
  .head .logo img { width: 4em; height: 4em; }
  .head h1, .head h2 { margin-right:5rem; }
}
.head dl { margin: 1em 0; }
p.copyright { font-size: 0.6em; font-style: oblique; margin: 0; }

nav { margin: 5em 0 0 0; }
header + nav { margin: 1em 0; }

#head nav {
  text-align: center;
  margin: auto;
}
#head nav > div {
  display: inline-block;
}
#head nav > div > a {
  display: inline-block;
  white-space: nowrap;
  font: 1em/1 Helvetica Neue, sans-serif, Droid Sans Fallback;
  text-decoration: none;
  width: auto;
  margin: 0.5em;
  color: #F3F3F3;
  text-align: center;
}
@keyframes stand-out {
  0%, 95% { transform: scale(1.4); box-shadow: 0 2px 10px gray; }
}
html:not(.split) #multipage-link { animation: 10s ease 0s 1 stand-out; }
#head nav > div > a { box-shadow: 0 0 2px #3C790A; background: #3C790A; }
#head nav > div > a.comms { box-shadow: 0 0 2px #165FCC; background: #165FCC; } /* #165FCC #43679D #0B2F66 */
#head nav > div > a.feedback { box-shadow: 0 0 2px #FF3E3A; background: #FF3E3A; } /* #FF3E3A #CD6B6A #990300 */
#head nav > div > a.changes { box-shadow: 0 0 2px #54B29A; background: #54B29A; } /* #54B29A #6A9A8E #28584C */
#head nav > div > a.misc { box-shadow: 0 0 2px #FFA32D; background: #FFA32D; } /* #FFA32D #CB9D62 #945400 */
#head nav > div > a > * > * {
  display: block;
  padding: 0.1em 1em 0.1em;
  background: rgba(255,255,255,0.9);
  color: black;
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}
#head nav > div > a > * > *:first-child {
  padding-top: 0.5em;
}
#head nav > div > a > * > *:last-child {
  padding-bottom: 1em;
}
#head nav > div > a > * > strong {
  color: blue;
  text-decoration: underline;
  padding-bottom: 0.5em;
}
#head nav > div > a > * > code {
  font-size: 0.8em;
}
@media (max-width: 767px) {
  #head nav { text-align: left; }
  #head nav > div { display: inline; }
  #head nav > div > a { width: 48%; margin: 0.1em; }
  #head nav > div > a > * > * { padding: 0.1em 0.5em 0.5em; }
  #head nav > div > a > * > code { font-size: 0.7em; }
}

p.copyright { text-align: center; }
p.copyright > span { display: inline-block; border: none; }

@media print {
  html { font-size: 8pt; }
  @page { margin: 1cm 1cm 1cm 1cm; }
  @page :left {
    @bottom-left {
      font: 6pt Helvetica Neue, sans-serif, Droid Sans Fallback;
      content: counter(page);
      padding-top: 0em;
      vertical-align: top;
    }
  }
  @page :right {
    @bottom-right {
      font: 6pt Helvetica Neue, sans-serif, Droid Sans Fallback;
      content: counter(page);
      text-align: right;
      vertical-align: top;
      padding-top: 0em;
    }
  }
  a[href^="#"]::after { font-size: 0.6em; vertical-align: super; padding: 0 0.15em 0 0.15em; content: "p" target-counter(attr(href), page); }
  .toc a::after { font: inherit; vertical-align: baseline; padding: 0; content: leader('.') target-counter(attr(href), page); }
  pre a[href^="#"]::after, blockquote a[href^="#"]::after { content: ""; padding: 0; }
  table { font-size: smaller; }
}

/* DOM tree */

ul.domTree span { font-style: italic; font-family: serif, Droid Sans Fallback; }
ul.domTree .t1 code { color: purple; font-weight: bold; }
ul.domTree .t2 { font-style: normal; font-family: monospace, Droid Sans Fallback; }
ul.domTree .t2 .name { color: black; font-weight: bold; }
ul.domTree .t2 .value { color: blue; font-weight: normal; }
ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
ul.domTree .t7 code, .domTree .t8 code { color: green; }
ul.domTree .t10 code { color: teal; }
ul.domTree code :link, ul.domTree code :visited { color: inherit; }

/* Note: Bikeshed uses pre.highlight/pre.idl; HTML uses pre > code */
/* Some <pre>s are not highlighted, e.g. output listings */

pre {
  margin: 0.5em 2em;
  white-space: pre-wrap;
  font-style: normal;
}

pre > code, pre.highlight, pre.idl {
  display: block;
  padding: 0.5em 1em;
  overflow: auto;
  border-radius: 0.3em;
  background: hsl(24, 20%, 95%);
}

pre > code.idl, pre.idl, pre > code.css, pre.highlight.lang-css {
  border: solid 0.0625em;
  color: black;
  border-top-left-radius: 0;
}

pre > code.idl::before, pre.idl::before, pre > code.css::before, pre.highlight.lang-css::before {
  font: bold 0.8rem Helvetica Nue, sans-serif;
  padding: 0.5em;
  position: absolute;
  top: auto;
  margin: -0.703125em 0 0 -3.75em /* 1em/0.8 + 1.5em + 0.5em*2 */;
  width: 1.5em;
  background: inherit;
  border: 0.078125em;
  border-style: solid none solid solid;
  border-radius: 1em 0 0 1em;
}

pre > code.idl, pre.idl {
  background: #EEE;
}

pre > code.css, pre.highlight.lang-css {
  background: #FFE;
}

@media (max-width: 767px) {
  pre > code.idl, pre.idl, pre > code.css, pre.highlight.lang-css {
    padding-left: 0.33em;
  }
  pre > code.idl::before, pre.idl::before, pre > code.css::before, pre.highlight.lang-css::before {
    width: 2.3em;
  }
}

/* WPT test results */

.wpt-tests-margin {
  background: hsl(290, 70%, 95%);
  margin: 1em auto;
  padding: .7em;
  width: 136px;
  font-size: 11px;
  position: absolute;
  right: 4.8px;
  z-index: 9;
  box-shadow: 0 0 3px #999
}
.wpt-tests-margin dl::before {
  content: "Tests";
  color: hsl(290, 70%, 30%);
  text-transform: uppercase;
}
.wpt-tests-margin dt {
  font-weight: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.wpt-tests-margin dt:first-child {
  margin-top: 2px;
}
.wpt-tests-margin dd {
  margin-left: 20px;
  line-height: 1em;
  margin-bottom: 4px;
}
.wpt-tests-margin > input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1em;
  height: 1em;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
.wpt-tests-margin.wrapped > :not(input) {
  display: none;
}

/* Dfn panels */
.dfn-panel {
    display: inline-block;
    position: absolute;
    z-index: 35;
    height: auto;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 300px;
    max-height: 500px;
    overflow: auto;
    padding: 0.5em 0.75em;
    font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
    background: #ddd;
    color: black;
    border: outset 0.2em;
    cursor: initial;
}
.dfn-panel:not(.on) { display: none; }
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
.dfn-panel > b { display: block; }
.dfn-panel a { color: black; }
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
.dfn-panel p:not(.spec-link) { font-weight: bolder; }
.dfn-panel > b + b, .dfn-panel > * + p { margin-top: 0.25em; }
.dfn-panel ul { padding: 0; }
.dfn-panel li { list-style: inside; }
.dfn-panel.activated {
    position: fixed;
    left: .5em;
    bottom: 2em;
    margin: 0 auto;
    max-width: calc(100vw - 1.5em - .4em - .5em);
    max-height: 30vh;
}

/* Elements that trigger a dfn panel when clicked.
   The dfn-paneled class is specific to Bikeshed, while dfnEnabled
   identifies builds of the HTML spec that support dfn panels. */
.dfn-paneled,
body.dfnEnabled dfn,
body.dfnEnabled h2[data-dfn-type],
body.dfnEnabled h3[data-dfn-type],
body.dfnEnabled h4[data-dfn-type],
body.dfnEnabled h5[data-dfn-type],
body.dfnEnabled h6[data-dfn-type] {
  cursor: pointer;
}
